package com.rnkrsoft.suyan.config.server.services.project.domains;

import com.rnkrsoft.suyan.config.internal.enums.YesOrNo;
import com.rnkrsoft.suyan.config.server.ajax.session.LoginUserId;
import com.rnkrsoft.suyan.config.server.ajax.session.LoginUserName;
import lombok.*;

import javax.doc.annotation.ApidocElement;
import javax.doc.data.Request;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by woate on 2018/6/18.
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UpdateProjectRequest extends Request implements LoginUserId, LoginUserName {
    @ApidocElement(value = "项目编号", maxLen = 36)
    String projectId;
    @ApidocElement(value = "继承项目", maxLen = 36)
    final List<String> dependencies = new ArrayList();
    @ApidocElement(value = "是否抽象项目", required = true, enumClass = YesOrNo.class, defaults = "2")
    String abstractProject;
    @ApidocElement(value = "是否允许推送", required = true, enumClass = YesOrNo.class, defaults = "1")
    String allowPush;
    @ApidocElement(value = "项目描述", maxLen = 512)
    String projectDesc;
    Integer loginUserId;
    String loginUserName;
}
